/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * CancelarEvento.java
 *
 * Created on 25/05/2011, 23:10:24
 */

package alocador.GUI;

/**
 *
 * @author daniel
 */
public class CancelarEvento extends javax.swing.JFrame {

    /** Creates new form CancelarEvento */
    public CancelarEvento() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        textFieldCancelaEvento = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();
        botaoCancelaEvento = new javax.swing.JButton();
        botaoPesquisaEvento = new javax.swing.JButton();
        botaoVoltaMenu = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jLabel1.setText("Digite o Id do Evento a ser removido:");

        botaoCancelaEvento.setText("Cancela Evento");
        botaoCancelaEvento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botaoCancelaEventoActionPerformed(evt);
            }
        });

        botaoPesquisaEvento.setText("Pesquisar Evento");
        botaoPesquisaEvento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botaoPesquisaEventoActionPerformed(evt);
            }
        });

        botaoVoltaMenu.setText("Voltar");
        botaoVoltaMenu.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botaoVoltaMenuActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(39, 39, 39)
                        .addComponent(jLabel1))
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(botaoVoltaMenu)
                        .addGap(38, 38, 38)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addGap(10, 10, 10)
                                .addComponent(botaoPesquisaEvento)
                                .addGap(53, 53, 53)
                                .addComponent(botaoCancelaEvento))
                            .addComponent(textFieldCancelaEvento, javax.swing.GroupLayout.PREFERRED_SIZE, 273, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1)
                .addGap(18, 18, 18)
                .addComponent(textFieldCancelaEvento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 42, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(botaoCancelaEvento)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(botaoVoltaMenu)
                        .addComponent(botaoPesquisaEvento)))
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void botaoCancelaEventoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botaoCancelaEventoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_botaoCancelaEventoActionPerformed

    private void botaoPesquisaEventoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botaoPesquisaEventoActionPerformed
        new LocalizaEvento().setVisible(true);
        dispose();
    }//GEN-LAST:event_botaoPesquisaEventoActionPerformed

    private void botaoVoltaMenuActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botaoVoltaMenuActionPerformed
        new Menu().setVisible(true);
        dispose();
    }//GEN-LAST:event_botaoVoltaMenuActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new CancelarEvento().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton botaoCancelaEvento;
    private javax.swing.JButton botaoPesquisaEvento;
    private javax.swing.JButton botaoVoltaMenu;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JTextField textFieldCancelaEvento;
    // End of variables declaration//GEN-END:variables

}
